// 页面入口文件
// 所有需要导入和挂载的内容在这里书写
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入我们自己的 base.scss
import '@/assets/sass/base.scss'

// 导入 http.js 文件
import HttpPlugin from '@/utils/http.js'

// 按需引入 ElementUI
import 'element-ui/lib/theme-chalk/index.css'
import { TabPane, Tabs, Cascader, Tree, MessageBox, Tag, Option, Select, Dialog, Tooltip, Switch, Pagination, Col, TableColumn, Table, Breadcrumb, BreadcrumbItem, Button, Form, FormItem, Input, Row, Menu, Submenu, MenuItemGroup, MenuItem, Message } from 'element-ui'

Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Row)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItemGroup)
Vue.use(MenuItem)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Col)
Vue.use(Pagination)
Vue.use(Switch)
Vue.use(Tooltip)
Vue.use(Dialog)
Vue.use(Select)
Vue.use(Option)
Vue.use(Tag)
Vue.use(Tree)
Vue.use(Cascader)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.prototype.$message = Message
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$confirm = MessageBox.confirm

// 在 Vue 上挂载 HttpPlugin
Vue.use(HttpPlugin)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
